@section('meta')
    <style>
        body{background-color: #fff;}
        .modal-content{display: unset;}
        .layui-form-label {width: 100px;}
        .layui-input-block {margin-left: 138px;}
        .layui-input, .layui-textarea {width: 86%;}
        .layui-form-select .layui-edge {right: 16%;}
        .layui-form-select dl {min-width: 86%;}
        .new-table {margin: 20px 0;}
    </style>
@endsection
@include('Home.User.Common._meta')
<!----  新增： 简历  ---->
<div class="modal-content new-table" id="addNew-content2">
    <form class="layui-form modal-client-info" action="" id="form-user" lay-filter="form-user">
        <div class="modal-func-btns">
            <a href="javascript:;" class="modal-save-btn" onclick="subForm('{{route('notice_edit',$obj->id)}}')" title="保存"><i class="icon icon-save"></i></a>
            <a href="javascript:location.replace(location.href);" class="modal-edit-btn" title="重置"><i class="icon icon-edit"></i></a>
        </div>
        @include('Home.User.Common._msg')
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" lay-verify="required" placeholder="请输入标题" value="{{$obj->title}}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="red">*</span>推送开始时间</label>
            <div class="layui-input-block">
                <input type="text" id="start_time" name="start_time" value="{{$obj->start_time}}" lay-verify="required" placeholder="请选择" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="red">*</span>推送结束时间</label>
            <div class="layui-input-block">
                <input type="text" id="end_time" name="end_time" value="{{$obj->end_time}}" lay-verify="required" placeholder="请选择" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-block">
                <textarea name="content" placeholder="请输入内容" lay-verify="required" class="layui-textarea">{{$obj->content}}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="red">*</span>状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="启用" @if($obj->status == 1) checked @endif>
                <input type="radio" name="status" value="0" title="停用" @if($obj->status == 0) checked @endif>
            </div>
        </div>
    </form>
</div>
@section('footer')
    <script>
        layui.use(['laydate','form'], function(){
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#start_time', //指定元素
                type: 'datetime'
            });
            //执行一个laydate实例
            laydate.render({
                elem: '#end_time', //指定元素
                type: 'datetime'
            });
        });
    </script>
@endsection
@include('Home.User.Common._footer')
@include('Home.User.Common._form')